﻿using Microsoft.EntityFrameworkCore.Migrations;

namespace shenghua.Migrations
{
    public partial class addentity6 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "LevelIDName",
                table: "AbpUsers");

            migrationBuilder.RenameColumn(
                name: "NeededXP",
                table: "MemberLevels",
                newName: "NeededXPValue");

            migrationBuilder.AddColumn<int>(
                name: "Level",
                table: "MemberLevels",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<string>(
                name: "ShoppingInfo_Pictures_StringValue",
                table: "Commodities",
                nullable: true);

            migrationBuilder.AddColumn<string>(
                name: "SelectedShoppingOptionParameters_StringValue",
                table: "Commodities",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "Level",
                table: "AbpUsers",
                nullable: true);
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "Level",
                table: "MemberLevels");

            migrationBuilder.DropColumn(
                name: "ShoppingInfo_Pictures_StringValue",
                table: "Commodities");

            migrationBuilder.DropColumn(
                name: "SelectedShoppingOptionParameters_StringValue",
                table: "Commodities");

            migrationBuilder.DropColumn(
                name: "Level",
                table: "AbpUsers");

            migrationBuilder.RenameColumn(
                name: "NeededXPValue",
                table: "MemberLevels",
                newName: "NeededXP");

            migrationBuilder.AddColumn<string>(
                name: "LevelIDName",
                table: "AbpUsers",
                nullable: true);
        }
    }
}
